﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Home.aspx.cs" Inherits="Project.Home" %>

    
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="videolist">
        <div>
            <asp:DataList ID="dlVideoList" runat="server" Width="191px" OnSelectedIndexChanged="dlVideoList_SelectedIndexChanged">
                <ItemTemplate>
                    <div class="itList">
                        &nbsp;&nbsp;&nbsp;
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "Home.aspx?idVideo="+Eval("idVideo") %>' 
                            Text='<%# Eval("titleVideo") %>'></asp:HyperLink><br />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label5" runat="server" Text='<%# Eval("uploadDate") %>'></asp:Label><br />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("fileSize") %>'></asp:Label>
                        <asp:Label ID="Label7" runat="server" Text="MB"></asp:Label>
                        <br />
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <br />
        </div>
    </div>
    <div id="mainview">
        <div class="infoVideo">
            <asp:Label ID="lbTitleVideo" runat="server" Text="Title Video" CssClass="titleVideo"></asp:Label><br />
            <asp:Label ID="lbUploader" runat="server" Text="Upload by Anh Nguyen"></asp:Label><br />
            <br />
            <br />
        </div>
        <video width="320" height="240" controls="controls" autoplay="autoplay">
          <source src="video/movie1.mp4" type="video/mp4">         
          Your browser does not support the video tag.
        </video>
    </div>
</asp:Content>
